//
//  NMyFocusCell.m
//  News
//
//  Created by zhangtao on 2018/10/13.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "NMyFocusCell.h"

@implementation NMyFocusCell
- (IBAction)focus:(id)sender {
    _focusBtn.selected = !_focusBtn.selected;
    
    
    if (_focusBtn.selected) {
        _focusBtn.backgroundColor = [UIColor whiteColor];// RGB(76, 195, 138, 1);
        [_focusBtn setTitleColor:RGB(76, 195, 138, 1) forState:UIControlStateNormal];
    }else{
        _focusBtn.backgroundColor = RGB(76, 195, 138, 1);// RGB(76, 195, 138, 1);
        [_focusBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _focusBtn.layer.borderWidth = 1;
    _focusBtn.layer.borderColor = RGB(76, 195, 138, 1).CGColor;
    _focusBtn.layer.cornerRadius = 2;
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
